<ion-view title="保险配置">

    <ion-content>

        <h1>这是保险配置项</h1>

        <div>
            <select name="list" style="width:100%">

                <option value="1">test1</option>

                <option value="2">test2</option>

                <option value="3">test3</option>

            </select>
        </div>

        <div ng-repeat="insureItem in quoteInfo.insureConfig">

            <div class="row">
                {{insureItem.label}} {{insureItem.code}}
            </div>


            <div ng-repeat="item in insureItem.items">

                <div class="row">
                    <div class="input-label col">
                        {{item.label}}
                    </div>

                    <div class="col" ng-if="item.type=='InsureItem' || item.type=='InsureAdjustItem' ">
                        <select ng-model="item.maxpay">
                            <!--ng-options="item.remark for item in item.maxpayOption">-->
                            <option ng-repeat="itemOp in item.maxpayOption" value="{{itemOp.amount}}">
                            {{itemOp.remark}}
                            </option>

                            <!--<option value="{{item.maxpayOption[0].amount}}">{{item.maxpayOption[0].remark}}</option>-->

                        </select>

                        <div ng-if="item.maxpay==2">
                            <input type="text" placeholder="请输入保额" ng-model="item.maxpay">
                        </div>

                    </div>

                    <div class="col" ng-if="item.type=='EditText'">
                        <input type="text" style="width:100%" placeholder="{{item.hint}}">
                    </div>

                    <div class="col" ng-if="item.type=='InsSlipeButton'">
                        <label class="toggle">
                            <input type="checkbox" ng-model="item.isSelect">

                            <div class="track">
                                <div class="handle"></div>
                            </div>
                        </label>
                    </div>

                    <div class="col" ng-if="item.ncfCode">
                        <ion-checkbox ng-model="item.ncfValue">不计免赔</ion-checkbox>
                    </div>


                </div>
            </div>
        </div>


    </ion-content>
</ion-view>